<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>欢迎页面</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
        <link rel="stylesheet" href="/static/css/font.css">
        <link rel="stylesheet" href="/static/css/xadmin.css">
        <script type="text/javascript" src="/static/js/jquery.min.js"></script>
        <script type="text/javascript" src="/static/lib/layui/layui.js" charset="utf-8"></script>
        <script type="text/javascript" src="/static/js/xadmin.js"></script>
    </head>
    <body>
    <div class="x-body layui-anim layui-anim-up">
    <blockquote class="layui-elem-quote">欢迎您：{{request.user}}
        <span class="x-red"></span>所属机构：{{request.user.user_company}}  所属部门：{{user_part}}</blockquote>
        <fieldset class="layui-elem-field">
            <legend>数据统计</legend>
            <div class="layui-field-box">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body">
                            <div class="layui-carousel x-admin-carousel x-admin-backlog" lay-anim="" lay-indicator="inside" lay-arrow="none" style="width: 100%; height: 90px;">
                                <div carousel-item="">
                                    <ul class="layui-row layui-col-space10 layui-this">
                                        <li class="layui-col-xs2">
                                            <a href="javascript:;" class="x-admin-backlog-body">
                                                <h3>未审批</h3>
                                                <p>
                                                    <cite>{{ no_permission_count }}</cite></p>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs2">
                                            <a href="javascript:;" class="x-admin-backlog-body">
                                                <h3>未办理</h3>
                                                <p>
                                                    <cite>{{ no_remake_count }}</cite></p>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs2">
                                                <a href="javascript:;" class="x-admin-backlog-body">
                                                <h3>未回执</h3>
                                                <p>
                                                    <cite>{{ no_hz_count }}</cite></p>
                                                </a>
                                            </li>
                                            <li class="layui-col-xs2">
                                                <a href="javascript:;" class="x-admin-backlog-body">
                                                <h3>失败</h3>
                                                <p>
                                                    <cite>{{ no_fail_count }}</cite></p>
                                                </a>
                                            </li>
                                        <li class="layui-col-xs2">
                                            <a href="javascript:;" class="x-admin-backlog-body">
                                                <h3>主号数量</h3>
                                                <p>
                                                    <cite>{{ main_count }}</cite></p>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs2">
                                            <a href="javascript:;" class="x-admin-backlog-body">
                                                <h3>副号数量</h3>
                                                <p>
                                                    <cite>{{ vice_count }}</cite></p>
                                            </a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </fieldset>
        <fieldset class="layui-elem-field">
            <legend>系统通知</legend>
            <div class="layui-field-box">
                <table class="layui-table" lay-skin="line">
                    <tbody>
                        {% for item in get_message %}
                        <tr>
                            <td >
                                <a class="x-a" >标题：{{item.title}}</a>
                                <p >内容：{{item.content}}</p>
                            </td>
                        </tr>
                        {% endfor %}
                    </tbody>
                </table>
            </div>
        </fieldset>
        </div>
    <script>
        layui.use('laydate', function(){
        var laydate = layui.laydate;
        
        //执行一个laydate实例
        laydate.render({
          elem: '#start' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
          elem: '#end' //指定元素
        });
        layer.ready(function(){
            var hz_count = {{no_hz_count}};
            if(hz_count!=0){
            layer.open({
              type:2,
              offset:'b',
              title:'提示',
              maxmin:true,
              shdade: false,
              shade: 0.3,
              area: '1000px',
              content:'/apply_hz/'
            });
        }
        });
      });
      
    </script>
</body>
</html>